package Java学习;

import java.security.KeyStore;
import java.util.*;
public class Map {
    public static void main(String[] args) {
        java.util.Map<String,String> map = new HashMap<String,String>();
        map.put("你好", "小颗粒");
        map.put("微胖", "叶舒华");
        map.put("美女", "宋雨琦");
        Set<java.util.Map.Entry<String, String>> entries = map.entrySet();
        Iterator<java.util.Map.Entry<String, String>> iterator = entries.iterator();
        while (iterator.hasNext()){
            java.util.Map.Entry<String, String> entry = iterator.next();
            System.out.println(entry.getKey() + ": " + entry.getValue());
        }
        String str = "你好";
    }
}
